package com.atguigu.eduorder.client;

import com.atguigu.commonutils.vo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author: LDeng
 * @Date: 2020-09-17 10:17
 */
@FeignClient(name="service-edu")
@Component
public interface EduClient {

    /**
     * 根据用户id获取用户信息
     * @param id
     * @return
     */
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);


}
